package demo.miner;

import jtech.math.Vec2f;

public class Collision {

	public static enum Type {
		SOFT, HARD, ATTRACTION
	}

	private Type type;
	private String with;
	private Vec2f local;

	public Collision() {
		
	}
	
	public Collision(Type type, String with, Vec2f local) {
		this(type, with, local.x, local.y);
	}
	
	public Collision(Type type, String with, float x, float y) {
		super();
		this.type = type;
		this.with = with;
		local = new Vec2f(x, y);
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getWith() {
		return with;
	}

	public void setWith(String with) {
		this.with = with;
	}

	public Vec2f getLocal() {
		return local;
	}

	public void setLocal(Vec2f local) {
		this.local = local;
	}

}
